{// 引入标签库 }
<tagLib name="html" />
{// 加载头部公共文件 }
<include file="Public:top" />
<!-- 菜单区域  -->

<!-- 主页面开始 -->
<div id="main" class="" >

<!-- 主体内容  -->
<div class="content" >
<!--  <div class="title">导入学生分数数据页面</div>-->
<!--  功能操作区域  -->
<div class="operate" >
    <html:imageBtn name="saveExcel" value="上传" click="upexcel()" style="impBtn hMargin fLeft shadow" />
    <html:imageBtn name="delete" value="删除" click="foreverdel()" style="impBtn hMargin fLeft shadow" />
    <div class="title1">[显示学生图表]</div>
</div>
<!-- 功能操作区域结束 -->
<style>

</style>
<!-- 主体显示区域  -->
<div class="list" >
<html:list id="examList" name="examList" style="list" checkbox="true" action="true" datasource="list" key="true" show="exName:试卷名称,exCount:总题目数,createtime|todate:创建时间,status|getStatus:状态" actionlist="showchart:出图" />
</div>
<!--  分页显示区域 -->
<div class="page">{$page}</div>

</div>
</div>

<!-- /*用于显示隐藏的内容，弹出窗口等*/ -->
<div class="hide">
	<div id="w1" class="easyui-window" title="根据学校、班级、学生出图表" iconCls="icon-save" style="width:1050px;height:550px;padding:5px;" closed="true">
		<div class="easyui-layout" fit="true">
			<div data-options="region:'west',split:true" title="学校列表" style="width:200px;">
				<ul id="tt"></ul>  
			</div>
			<div region="center" border="false" style="padding:10px;background:#fff;border:1px solid #ccc;" id='list4'>
				<img src="" id="chart1"/>
			</div>
			<div region="south" border="false" style="text-align:right;padding:5px 0; height:35px">
				<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="submit4()">确认</a>
				<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="close1()">关闭</a>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
jQuery(document).ready(function() {
    $("#examList tr").mouseover(function() {
        $(this).addClass("over");
    }).mouseout(function() {
        $(this).removeClass("over");
    });
});     
function showchart(id){
	$.post(URL + '/showchart', {
		id: id,
		ajax: 1
	}, function(data, textStatus, xhr) {
		//slidemessage(data);
		$('#tt').tree({
		 	data:data,
		 	onClick: function(node){
				//alert(node.text);  // alert node text property when clicked
				//alert(node.id);
				var _url = URL + '/chart1/schoolid/' + node.id+ '/examid/'+ id +'/hash/' + Math.random();
				var _im = $("#chart1");
				_im.attr('src', _url);
			}
		 });
	}, "json"); //post 
	$('#w1').window('open');
}
function close1(){
	$('#w1').window('close');
}
</script>